@database textengine.guide @node MAIN (beware: this doc is far from perfect) Textengine 1.0 (should rather be 0.1) Converts Textengine-style to either PageStream3-style or HTML-2, or anything else someone's written a converter for. @{"Copyright " link COPYR} @{"Overview " link OV} @{"Usage " link USE} @{"Programming" link PROG} @{"Files " link FILES} If strange things happen when using Textengine (quite possible) contact me. toenges@fact.rhein-ruhr.de @endnode @node COPYR Never care about any rights. @endnode @node OV Converts Textengine-style to any other style (currently PGS3 and HTML), incl. all headers etc. If possible, the text will get directly transfered to the target application. Textengine Commands are in "<" and ">" brackets, usually their scope is limited by the corresponding "". Case sensitiv (maybe, didn't care about that). Every command will be transformed to a more or less complex different text-format, like PageStream3 or HTML. Commands which can't be transformed won't make trouble, they'll produce simple-text output. The Textengine-style is designed to be easily readable (at least for human beings), even before it get's transformed to the final version. That means, it's something like TeX-light, but the source is a bit easier to read. Main advantage is, that you can use ONE file for any supported target. This is similar to texinfo. TextEngine is context-sensitive, see example. Important features: - WORKING Drop Caps in PGS - Lists (numbered, bulleted, custom) - Random emphasize function in PGS ( automatically selects one out of big, bold, subscript, superscript...) - It's easy for you to programm your own functions Useful: GOLDED 3+ (won't work without) PageStream 3 a HTML-viewer match (for HTML) raw2ent (for HTML) rep (for HTML) @endnode @node USE There are two kinds of "commands": The context-commands, which Textengine does automatically, and the "real" commands, which must be in the text. Textengine is designed to do as much as possible of the formating based on the context. @{"Context " link CONT} @{"Commands" link COMM} Place it in your GoldED's menu and run it this way: textengine.ged [TARGET] If you give a TARGET (currently only PGS3 and HTML), the text will be fully converted. If you don't, Textengine does just the pre-run. You won't need this, because it's completely senseless. Note: there's about no error-tolerance. If the output is really weird, even the smallest mistake could be the cause. @endnode @node CONT Context-interpretation depends partly on the selected style (style must be namend in the first line). Article: If the second line is smaller than 26 bytes, then it becomes a heading. If there is a third line immediately following, it becomes a sub-heading. If the last line is only two bytes long, or contains several two-byte words seperated by ", ", then it's the author's name. In PGS, the first real-bodytext-char is a drop cap, two lines high. There could be other things i forgot to mention. Box: If the second line is smaller than 45 bytes, it becomes a heading. There could be other things i forgot to mention. Letter: Much like box. There is a special context-interpretation in lists. See there (sorry, no link). @endnode @node COMM The Style must be given in the FIRST line, in the form of: